package club.banyuan.api.Demo;

/**
 * @author edz
 * @version 1.0
 * @date 2020/11/26 下午6:49
 */
public class work1 {
    public static void main(String[] args) {
        int a = randomInt(-10, 2);
        System.out.println(a);
    }

    public static int randomInt(int from, int to) {
        int index = (int) (Math.random() * (to - from)) + from;
        return index;
    }
}
